package pl.bizuteria.sklep.api.shared.request;

import java.util.List;
import java.util.Set;

import pl.bizuteria.sklep.api.product.EaringService;
import pl.bizuteria.sklep.api.product.ProductServiceLocator;
import pl.bizuteria.sklep.api.shared.proxy.EaringProxy;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;

@Service(value = EaringService.class, locator = ProductServiceLocator.class)
public interface EaringRequest extends RequestContext {
	Request<List<EaringProxy>> findAll();
	
	Request<List<EaringProxy>> findAll(int start, int length);
	
	Request<Void> persist(EaringProxy proxy);
	
	Request<Void> remove(EaringProxy proxy);

	Request<Void> remove(Set<EaringProxy> elements);

	Request<Integer> count();
	
//	Request<EaringProxy> findEaring(Long id);

//	InstanceRequest<EaringProxy, Void> persist();

//	InstanceRequest<EaringProxy, Void> remove();
}
